Skip to content

feat: client evaluation context getter and setter#610

Closed
karnyadavdev wants to merge 4 commits into
open-feature:mainfrom
karnyadavdev:feat-client-evaluation-context-setter
Closed

feat: client evaluation context getter and setter#610
karnyadavdev wants to merge 4 commits into
open-feature:mainfrom
karnyadavdev:feat-client-evaluation-context-setter

Conversation

@karnyadavdev
Copy link
Copy Markdown

closes #500

Exposes evaluation_context as a property getter and setter on OpenFeatureClient to support getting and setting a client-wide evaluation context, matching requirements from the OpenFeature specification.

Added a dedicated unit test in tests/test_client.py to verify getting and setting.

@karnyadavdev karnyadavdev requested review from a team as code owners May 30, 2026 19:16
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds getter and setter properties for evaluation_context to the Client class, along with a corresponding unit test. The reviewer suggests updating the setter to default to an empty EvaluationContext if None is passed, which prevents potential type annotation violations and ensures consistency with the class's initialization logic.

Comment thread openfeature/client.py Outdated
@karnyadavdev karnyadavdev force-pushed the feat-client-evaluation-context-setter branch from 9ac6ddb to 0a96426 Compare May 30, 2026 22:59
Signed-off-by: Karan Yadav <47368518+karnyadavdev@users.noreply.github.com>
Signed-off-by: Karan Yadav <47368518+karnyadavdev@users.noreply.github.com>
@karnyadavdev karnyadavdev reopened this May 30, 2026
@karnyadavdev
Copy link
Copy Markdown
Author

review this pr

@gruebel
Copy link
Copy Markdown
Member

gruebel commented Jun 1, 2026

Duplicate of #593

@gruebel gruebel marked this as a duplicate of #593 Jun 1, 2026
@gruebel gruebel closed this Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] client evaluation context support

2 participants